import { createStore } from "vuex";


export default createStore({
    state:{
        name:sessionStorage.getItem('u')||''
    },
    mutations:{
        setname(state,data){
            state.name=data
            sessionStorage.setItem('u',data)
        }
    }
})